﻿
namespace ProjetCom.Model.Snake {
    public enum BlockName { Head, Tail, EndTail, Obstacle , }

    class BlockSnake
    {
        public BlockName m_type { get; private set; }
        public int X { get; private set; }
        public int Y { get; private set; }

        public const int Width = 64;
        public const int Height = 64;

        public BlockSnake(BlockName p_type, int p_x, int p_y) {
            m_type = p_type;
            X = p_x;
            Y = p_y;
        }

        public void ChangePosition() {
            if (m_type == BlockName.Head)
                m_type = BlockName.Tail;
            else if (m_type == BlockName.Tail)
                m_type = BlockName.EndTail;
        }
    }
}
